
import request from '@/utils/index.js'

//注册接口函数
export function register(data){
  return request({
    url:'/auth/local/register',
    method:'post',
    data
  })
}

// 登录接口
export function loginForm(data) {
    return request({
        url: "/auth/local",
        method: "post",
        data
    })
}
// 获取用户信息
export function getUserInfo() {
    return request({
        url: "/users/me",
    })
}
